package movEat.Definitions;

public class actorDB {
	private String fullName=null;
	private String firstName=null;
	private String lastName=null;

	public actorDB(String first, String last){
		if(first.equals("First name"))
			firstName ="";
		else 
			firstName =first;
		if(last.equals("Last name"))
			lastName ="";
		else
			lastName = last;
		
		fullName=firstName+" "+lastName;
		 		
	}
	
	public void setFirstName(String firstName) {
		this.firstName = firstName;
	}

	public void setLastName(String lastName) {
		this.lastName = lastName;
	}

	public actorDB(String full){
//		int spaceIndex=full.indexOf(" ");
//		if(spaceIndex>0)
//			fullName=full.substring(spaceIndex+1, full.length()) + ", " + full.substring(0, spaceIndex);
//		else fullName=full;
		
		fullName = full;
	}
	
	public actorDB() {
		// TODO Auto-generated constructor stub
	}

	public String getFirstName() {
		return firstName;
	}
	public String getLastName() {
		return lastName;
	}
	public String getFullName() {
		return firstName+" "+lastName;
	}
}
